﻿using Autofac.Extras.DynamicProxy2;
using OrchardForkTest.Dao;
using OrchardFork.Framework.Data;

namespace OrchardForkTest.Service
{
    [Intercept("AOP")]
    public class TestService : ITestService
    {
        private readonly ITestDao _testDao;
        public TestService(ITestDao testDao)
        {
            _testDao = testDao;
        }

        [Transaction]
        public void Test()
        {
            _testDao.FinalTest();
        }
    }
}